Skip to content

Conversation

Oceania2018
Copy link

Tested running very well.

image

@@ -165,16 +166,16 @@ def next_batch(batch_size, num_skips, skip_window):
sess.run(init)

# Testing data
x_test = np.array([word2id[w] for w in eval_words])
x_test = np.array([word2id.get(w.encode(), 0) for w in eval_words])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just be word2id[w.encode()]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants